package evaleto.ecodroid.device;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

public class Battery implements Idevice {
	Context context;
	
	public Battery(Context context) {
		this.context=context;
	}
	
	@Override
	public void addOnChange(BroadcastReceiver receiver) {
		context.registerReceiver(receiver, new IntentFilter(
                Intent.ACTION_BATTERY_CHANGED));
	}

	@Override
	public boolean isEnable() {
		return true;
	}

	@Override
	public void setEnable(boolean enable) {

	}

	@Override
	public void toggle() {

	}

}
